package org.dexefer.entities;

import org.dexefer.DXFPoint;
import org.dexefer.annotations.DXFPointProperty;
import org.dexefer.annotations.DXFProperty;

public class Rectangle extends Entity{

	@DXFProperty(100)
	private String entityMarker = "AcDbPolyline";

	@DXFProperty(39)
	private Integer thickess;
	
	@DXFProperty(90)
	private Integer num_vertices;
	
	@DXFProperty(10)
	private double X1Point;		// x value of vertex
	@DXFProperty(10)
	private double X2Point;		// x value of vertex
	@DXFProperty(10)
	private double X3Point;		// x value of vertex
	@DXFProperty(10)
	private double X4Point;		// x value of vertex
	
	@DXFProperty(20)
	private double Y1Point;		// y value of vertex
	@DXFProperty(20)
	private double Y2Point;		// y value of vertex
	@DXFProperty(20)
	private double Y3Point;		// y value of vertex
	@DXFProperty(20)
	private double Y4Point;		// y value of vertex
	
	
	public Rectangle(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4){
		this.num_vertices=4;
		this.X1Point=x1;
		this.Y1Point=y1;
		this.X2Point=x2;
		this.Y2Point=y2;
		this.X3Point=x3;
		this.Y3Point=y3;
		this.X4Point=x4;
		this.Y4Point=y4;
	}
	
	public Integer getThickess() {
		return thickess;
	}
	public void setThickess(Integer thickess) {
		this.thickess = thickess;
	}
	
	public double getX1Point(){
		return this.X1Point;
	}
	public double getY1Point(){
		return this.Y1Point;
	}
	public double getX2Point(){
		return this.X2Point;
	}
	public double getY2Point(){
		return this.Y2Point;
	}
	public double getX3Point(){
		return this.X3Point;
	}
	public double getY3Point(){
		return this.Y3Point;
	}
	public double getX4Point(){
		return this.X4Point;
	}
	public double getY4Point(){
		return this.Y4Point;
	}	
	
	public Integer getNum_vertices(){
		return this.num_vertices;
	}
	
	@Override
	public String getEntityMarker() {
		return entityMarker;
	}

}
